package com.hangyutech.strelitzia.vo;


/**
 * Created by Andy on 2018/7/2.
 */
public class DataBus {


    //信息详情
    private String result_msg;// 查询成功  未查询到数据  报错

    //成功失败信息
    private String result_code = "SUCCESS";// SUCCESS  FAILED

    //公共通知编码
    private Integer result_num = 200;// 200   500   借用 HTTP 状态

    //数据
    private Object data;

    public DataBus() {
    }


    public DataBus(String msg, String code) {
        this.result_msg = msg;
        this.result_code = code;
    }

    public DataBus(String msg, String code, Integer num) {
        this.result_msg = msg;
        this.result_code = code;
        this.result_num = num;
    }

    public DataBus(String msg, String code, Integer num, Object data) {
        this.result_msg = msg;
        this.result_code = code;
        this.result_num = num;
        this.data = data;
    }

    public DataBus(Object data) {
        this.data = data;
    }


    public String getResult_msg() {
        return result_msg;
    }

    public void setResult_msg(String result_msg) {
        this.result_msg = result_msg;
    }

    public String getResult_code() {
        return result_code;
    }

    public void setResult_code(String result_code) {
        this.result_code = result_code;
    }

    public Integer getResult_num() {
        return result_num;
    }

    public void setResult_num(Integer result_num) {
        this.result_num = result_num;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public void setInfo(String msg, String code, Integer num) {
        this.result_msg = msg;
        this.result_code = code;
        this.result_num = num;
    }
}
